{% extends "site.html" %}
{% block title %}{% endblock %}
{% block stylesheet %}{% load media %}{% media_prefix %}css/sklad.css{% endblock %}
{% block extrastyle %}<link rel="stylesheet" type="text/css" href="{% media_prefix %}css/sklad-tree.css">{% endblock %}
{% block globalconteiner %}
<div id="title"><h1>Склад</h1></div>
{% block main %}

<table border="0" class="table_layout">
<tr><td>

<div id="contentleft">
<h3>Категории</h3>
{% if currentcategory %}
<p class="item_menu"><a href="{% url category_create currentcategory %}">Новая подкатегория</a></p>
{% else %}

<p class="item_menu"><a href="{% url category_root_create %}">Новая категория</a></p>

{% endif %}



    <div id="catlist">
    {% for item in cattree %}
      <div class="catitem">
        <samp>
          <a href=""><img src="{% load media %}{% media_prefix %}img/icon_deletelink.gif" width="10" height="10" title="Удалить категорию {{ item.name }}"></a>
          <a href="{% url category_edit item.id %}"><img src="{% media_prefix %}img/icon_changelink.gif" width="10" height="10" title="Изменить категорию {{ item.name }}"></a>
        </samp>
        <samp style="padding-left: {{ item.csslevel }}px">
        {% if item.expanded %}	
            {% if item.child_present %}
                <a href="{% url category_collaps item.id %}">
                <img src="{% media_prefix %}img/minus.gif" width="9" height="9"></a>
            {% else %}
                <img src="{% media_prefix %}img/rect.gif" width="9" height="9">
            {% endif %}		
        {% else %}
            {% if item.child_present %}
                <a href="{% url category_expand item.id %}">
                <img src="{% media_prefix %}img/plus.gif" width="9" height="9"></a>
            {% else %}
                <img src="{% media_prefix %}img/rect.gif" width="9" height="9">
            {% endif %}		
        {% endif %}
        {% ifequal item.id currentcategory %}<b>{% endifequal %}
           <a href="{% url category_view item.id %}">{{ item.name }}</a>
        {% ifequal item.id currentcategory %}</b>{% endifequal %}</samp>
      </div>
    {% endfor %}
    </div>
</div>
</td>
<td width="99%">
    <div id="contentright">
    {% block content %}
        <h5>content</h5>
    {% endblock %}
    </div>
</td>
<td>
    {% block contentmenu %}{% endblock %}
</td>
</tr>
</table>
{% endblock %}

{% endblock %}
{% block meta %}
Version:&nbsp;0.0.1.0&nbsp;&nbsp;Date:&nbsp;16.07.2009
{% endblock %}	

